
import axios from "axios";


const updateLeaveStatus = async (getData) =>{

    try {

        const response =  await axios.post('/update-leave-status',{status : getData.status , leave_id : getData.leave_id  });

        if (response.status == 200 ){

            return response.data;

        }else{

            return 'error'
            
        }
    } catch (error) {
        console.log( error );
    }
    
}

export default  updateLeaveStatus;

